<link rel="stylesheet" href="__PUBLIC__/css/my_car.css">
<include file='Public/position' />
<div>
	<div class='mycar-header'>
		来吃网
	</div>
	<div class='mycar-table'>
		<table>
			<foreach name='carDataArr' item='v'>
				<tr data-id=<{$v.goods_id}>>
					<td class='mycar-col-nbsp'></td>
					<td class='mycar-col1'>
						<present  name='v.goods_pic.one'>
							<a href="__CONTROLLER__/foodDetail/<{$v.goods_id}>"><img src="<{$v.goods_pic.one}>" alt="<{$v.goods_name}>" title="<{$v.goods_name}>"></a>
						</present>
						<present  name='v.goods_pic.two'>
							<a href="__CONTROLLER__/foodDetail/<{$v.goods_id}>"><img src="<{$v.goods_pic.two}>" alt="<{$v.goods_name}>" title="<{$v.goods_name}>"></a>
						</present>
						<present  name='v.goods_pic.three'>
							<a href="__CONTROLLER__/foodDetail/<{$v.goods_id}>"><img src="<{$v.goods_pic.three}>" alt="<{$v.goods_name}>" title="<{$v.goods_name}>"></a>
						</present>
						<span><a href="__CONTROLLER__/foodDetail/<{$v.goods_id}>"><{$v.goods_name}></a></span>
					</td>
					<td class='mycar-col2'>
						<span>平民价：¥<{$v.goods_price}></span>
						<span>会员价：¥<{$v.goods_uprice}></span>
					</td>
					<td class='mycar-col3'>
						<span class='mycar-plus'>-</span>
						<input type="text" value='<{$v.goods_num}>' class='mycar-input'>
						<span class='mycar-add'>+</span>
					</td>
					<td class='mycar-col4'>
						<a href="#">删除</a>
					</td>
				</tr>
			</foreach>
			<empty name="carDataArr">
				<tr class='table-tr-no-data'><td colspan=5>您还没有添加任何商品，<a href="__CONTROLLER__/index">去购物？</a></td></tr>
			</empty>
		</table>
	</div>
	<div class='mycar-end clear'>
		<div class='mycar-clean'>
			<font class='clean_my_car_operate'>
				<span class='glyphicon glyphicon-trash'></span>
				清空购物车
			</font>
		</div>
		<div class='mycar-price'>
			<div class='clear'>
				<span class='mycar-price-span goods_total_price'>+¥<{$goodsTotalPrice}></span>
				<span>商品总价：</span>
			</div>
			<div class='clear div-bottom-line'>
				<span class='mycar-price-span goods_differ'>-<font class='show_important_red'>¥<{$goodsDiffer}></font></span>
				<span>会员优惠：</span>
			</div>
			<div class='clear '>
				<span class='mycar-price-span goods_total_uprice'><font class='show_important_red'>¥<{$goodsTotalUPrice}></font></span>
				<span>商品总价（不含运费）</span>
			</div>
			<div>
				<span class='pay-for-car'>去结算</span>
			</div>
		</div>
	</div>
</div>

<script>
	var my_car_var = {
		cleanMyCarUrl:'__CONTROLLER__/cleanMyCar',
		changeMyCarNumUrl:'__CONTROLLER__/changeMyCarNum',
		checkUserLoginUrl:'__MODULE__/User/checkUserLogin',
		createOrderUrl:'__MODULE__/Order/createOrder'
	}

</script>